"use strict";
{
    //声明一个变量
    let me = {
        id: 1,
        name: '张三',
        age: 36,
        car: '雅迪',
        cook() {
            console.log('我会做泡面');
        }
    };
    let you = {
        id: 2,
        name: '旭鹏',
        age: 18,
        cook: () => {
            console.log('我会做黯然销魂饭...');
        }
    };
    //修改 id 属性值
    // me.id = 123;
}
{
    //implements 实现
    class LeBoy {
        //构造方法
        constructor(name, age, car) {
            this.house = '120m2';
            this.name = name;
            this.age = age;
            this.car = car;
        }
        cook(fan) {
            console.log('我可以做' + fan);
        }
        earn() {
            console.log('能挣钱...');
        }
    }
    //实例化对象
    let wjk = new LeBoy('王俊凯', 22, '五菱mini');
}
{
    //implements 实现
    class LeBoy {
        //构造方法
        constructor(name, age, language, car) {
            this.house = '120m2';
            this.test = 520;
            this.name = name;
            this.age = age;
            this.language = language;
            this.car = car;
        }
        cook(fan) {
            console.log('我可以做' + fan);
        }
        //编程方法
        program(lang) {
            console.log(`我可以编写 ${lang} 语言`);
        }
        earn() {
            console.log('能挣钱...');
        }
    }
    //实例化对象
    let me = new LeBoy('佳乐', 18, 'JavaScript', '爱玛');
    console.log(me);
}
{
    let test = {
        name: 'xxx',
        age: 20,
        height: 10,
        weight: 20
    };
}
{
    let person = {
        name: '王五',
        car: {
            brand: '比亚迪',
            price: 120000,
            color: 'blue',
            zuoyi: {
                color: '黑色',
                caizhi: '真皮',
                num: 5
            }
        }
    };
}
